package jml.config;

import java.util.Hashtable;



public class Plugin
{
	private String name;
	private String type;
	
	private Hashtable<String,String> parameters;

	public String toString()
	{
		return "name="+name+", type="+type+"; parameter={"+parameters+"}";
	}
	
	public Plugin()
	{
		parameters = new Hashtable<String, String>();
	}
	
	public void addParameter(String pName, String pValue)
	{
		parameters.put(pName, pValue);
	}
	
	public String getParameter(String pName)
	{
		return parameters.get(pName);
	}
	
	public Hashtable<String,String> getParameters()
	{
		return parameters;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getName()
	{
		return name;
	}

	public void setType(String type)
	{
		this.type = type;
	}

	public String getType()
	{
		return type;
	}
}
